package com.xd.core.debt.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @ClassName EarlyRepayVo
 * @Description 提前还款申请返回vo
 * @Author Zch
 * @Date 2025/8/27 星期三 15:45
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class EarlyRepayVo {

    @ApiModelProperty("债权ID")
    private Integer debtId;

    @ApiModelProperty(value = "提前还款总额")
    private BigDecimal earlyAmount;

    @ApiModelProperty(value = "本金")
    private BigDecimal principal;

    @ApiModelProperty(value = "利息")
    private BigDecimal interest;

    @ApiModelProperty(value = "违约金")
    private BigDecimal penalty;

    @ApiModelProperty(value = "逾期利息")
    private BigDecimal lateInterest;

    @ApiModelProperty(value = "减免金额")
    private BigDecimal reliefAmount;

    @ApiModelProperty(value = "是否无逾期提前还款 1:正常,2:逾期")
    private String isNormal;

    @ApiModelProperty(value = "提起还款日期")
    @JsonFormat(pattern = "yyyy-MM-dd", shape = JsonFormat.Shape.STRING, timezone = "GMT+8")
    private Date earlyDate;

    @ApiModelProperty(value = "放款日期")
    @JsonFormat(pattern = "yyyy-MM-dd", shape = JsonFormat.Shape.STRING, timezone = "GMT+8")
    private Date disbursementDate;
}
